import math

try:
    a, b, c = eval(input())
    if a == 0:
        raise ZeroDivisionError('方程的系数a不能为0')
    delta = b * b - 4 * a * c
    assert delta >= 0
    if delta >= 0:
        x1 = (-b + math.sqrt(delta)) / (2 * a)
        x2 = (-b - math.sqrt(delta)) / (2 * a)
        result = f"x1={x1:.2f}\nx2={x2:.2f}"
except ZeroDivisionError as e:
    print(e)
except AssertionError:
    print("方程的判别式delta小于0,方程没有实数根")
else:
    print(result)
